#include<stdio.h>
main()
{
    char c,s[]="ABCCDA";
    int k;
    for(k=1;(c=s[k])!='\00';k++)
    {
        switch(c)
        {
            case 'A':putchar('%');continue;
            case 'B':++k;break;
            default:putchar('*');
            case'C':putchar('&');continue;
        }
        putchar('#');
    }
}